package org.example.demo3_yilai.after;

/**
 * 汽车系统
 * @author lemon
 */
public class AutoSystem {

    private Car car;

    public AutoSystem() {
        this.car = car;
    }

    public Car getCar() {
        return car;
    }

    public void setCar(Car car) {
        this.car = car;
    }

    public void run(){
        System.out.println("运行自动驾驶系统");
        car.runCar(car);
        car.stopCar(car);
        car.turnCar(car);
    }
}
